package com.luban.dao;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ApplicationEventPublisherAware;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class IndexDaoImpl implements IndexDao , ApplicationEventPublisherAware {
	private ApplicationEventPublisher applicationEventPublisher;
	@Override
	public void query() {
		System.out.println("query1111");
	}

	public IndexDaoImpl(){
		System.out.println("构造器");
	}

	@PostConstruct
	public void test(){
		System.out.println("初始化");
	}


	@Override
	public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) {
		this.applicationEventPublisher = applicationEventPublisher;
	}
}
